/*
* Copyright (c) 2010 Michael Collins
*
* This file is part of TerraFirma.
*
* TerraFirma is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TerraFirma is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TerraFirma.  If not, see <http://www.gnu.org/licenses/>.
*/

#include <matrix.h>

namespace fixedpoint
{

    mat23 mat22::operator *(const mat23& a) const
    {
        return mat23(_11*a._11 + _12*a._21,
                     _21*a._11 + _22*a._21,
                     _11*a._12 + _12*a._22,
                     _21*a._12 + _22*a._22,
                     _11*a._13 + _12*a._23,
                     _21*a._13 + _22*a._23);
    }
}
